package com.hgkj.cloud.base.domain;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

public class QnCensus implements Serializable {
    private String question;  //问卷题目
    private Integer max_answer;  //问卷题目选项最大个数

    public Integer getMax_answer() {
        return max_answer;
    }

    public void setMax_answer(Integer max_answer) {
        this.max_answer = max_answer;
    }

    private List<QnAnswerCensus> ansCensus = new ArrayList<QnAnswerCensus>();

    public String getQuestion() {
        return question;
    }

    public void setQuestion(String question) {
        this.question = question;
    }

    public List<QnAnswerCensus> getAnsCensus() {
        return ansCensus;
    }

    public void setAnsCensus(List<QnAnswerCensus> ansCensus) {
        this.ansCensus = ansCensus;
    }

    public class QnAnswerCensus {
        private String answer;  //问卷答案
        private Integer user_nums = 0;   //选择此答案的用户数
        private String percentage = "0";   //选择此答案的百分比

        public String getAnswer() {
            return answer;
        }

        public void setAnswer(String answer) {
            this.answer = answer;
        }

        public Integer getUser_nums() {
            return user_nums;
        }

        public void setUser_nums(Integer user_nums) {
            this.user_nums = user_nums;
        }

        public String getPercentage() {
            return percentage;
        }

        public void setPercentage(String percentage) {
            this.percentage = percentage;
        }

    }

}
